package com.ap.core.business.message.validation.handler.impl;

import com.ap.core.business.message.domain.translators.BindingMetaData;
import com.ap.core.business.message.validation.handler.AbstractValidationHandler;
import com.ap.core.message.managemerchant.info.RequestMerchantRegistrationTypeInfo;
import com.ap.core.validation.message.info.MessageValidationInfo;
import com.ap.core.validation.message.info.OriginalInfo;

/**
 * User: Rohit.Dixit
 * Implementation class for {@link com.ap.core.business.message.validation.handler.ValidationHandler} for Merchant Registration Type message
 */
public class MerchantRegistrationValidationHandler extends AbstractValidationHandler<RequestMerchantRegistrationTypeInfo, OriginalInfo> {



    @Override
    protected MessageValidationInfo<RequestMerchantRegistrationTypeInfo, OriginalInfo> getMessageValidationInfo(final RequestMerchantRegistrationTypeInfo request, final BindingMetaData metaData) {
        return new MessageValidationInfo<RequestMerchantRegistrationTypeInfo, OriginalInfo>() {
            @Override
            public RequestMerchantRegistrationTypeInfo getBoundObject() {
                return request;
            }

            @Override
            public OriginalInfo getOriginalInfo() {
                return null;
            }
        };
    }

}
